package zsc.ruanc.practicaltraining.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import zsc.ruanc.practicaltraining.model.domain.TMailbox;

import java.util.Map;

/**
 * 消息模块
 */
public interface RabbitMQService {

    // 点赞
    public void likesMailbox(Integer fromId, String fromName, Integer articleId);

    // 评论
    public void commentMailbox(Integer fromId, String fromName, Integer ObjectId);

    // 回复
    public void replyMailbox(Integer fromId, String fromName, Integer articleId);

    // 文章审核
    public void verifyMailbox(Integer articleId, Boolean flag);



    // 评论被点赞
    public void likesCommentMailBox(Integer fromId, String fromName, Integer commentId);

    // 回复被点赞
    public void likesReplyMailbox(Integer fromId, String fromName, Integer replyId);

    // 接收
    public void receive(TMailbox vo);


    //----------------------------------------------------------

    // 分页 查看自己信箱信息
    public Map select(int cur, int size, int userId);

    // 删除信箱一条信息
    public boolean delete(int id, int userId);

    // 查看未读信息条数
    public int selectUnread(int userId);

    // 信息标记为已读
    public boolean updateFlag(int id, int userId);






    //--------管理员-----------------------------
    // 管理员发信息
    public void adminMailbox(Integer toId, String info);
}
